export const CURRENT_STATUS = {
  'FIRST_AUDIT': '主任审批中',
  'RISK_AUDIT': '放款审批中',
  'LOAN_SUCCESS': '放款成功'
}

export const QUERY_HEAD_LIST = [
  { prop: 'loanSerialNo', label: '借款编号' },
  { prop: 'customerName', label: '借款人' },
  { prop: 'newProduct', label: '产品名称' },
  { prop: 'loanAmount', label: '借还金额' },
  { prop: 'newPeriods', label: '借款期数' },
  { prop: 'newFeePayType', label: '还款方式' },
  { prop: 'loanRate', label: '年利率%' },
  { prop: 'newSendState', label: '当前状态' },
  { prop: 'acceptorName', label: '受理人' },
  { prop: 'acceptorOrgName', label: '所属机构' },
  { prop: 'createTime', label: '结清证明申请时间', width: '120px' },
  { prop: 'sendTime', label: '结清证明发送时间', width: '140px' }
]
export const DETAIL_FORM = [
  { prop: 'loanSerialNo', label: '借款编号', type: 'input', isEdit: false },
  { prop: 'newProduct', label: '产品名称', type: 'input', isEdit: false },
  { prop: 'newSendState', label: '当期状态', type: 'input', isEdit: false },
  { prop: 'customerName', label: '借款人', type: 'input', isEdit: false },
  { prop: 'idNbr', label: '身份证号码', type: 'input', isEdit: false },
  { prop: 'customerPhone', label: '手机号码', type: 'input', isEdit: false },
  { prop: 'loanAmount', label: '借款金额(元)', type: 'input', isEdit: false },
  { prop: 'newPeriods', label: '借款期数', type: 'input', isEdit: false },
  { prop: 'newFeePayType', label: '还款方式', width: '140px', type: 'input', isEdit: false },
  { prop: 'loanRate', label: '年利率', type: 'input', isEdit: false },
  { prop: 'createTime', label: '结清证明申请时间', type: 'input', isEdit: false },
  { prop: 'sendTime', label: '结清证明发送时间', type: 'input', isEdit: false }
]

export const CUS_FORM = [
  { prop: 'repayCapital', label: '还款本金(元)', type: 'input', isEdit: false },
  { prop: 'repayInterest', label: '还款利息(元)', type: 'input', isEdit: false },
  { prop: 'repayPenaltyInterest', label: '还款罚息(元)', type: 'input', isEdit: false },
  { prop: 'repayBreachPenalty', label: '还款手续费(元)', type: 'input', isEdit: false },
  { prop: 'remainQuota', label: '是否提前结清', type: 'input', isEdit: false }
]
export const ACC_FORM = [
  { prop: 'acceptorNo', label: '受理人工号', type: 'input', isEdit: false },
  { prop: 'acceptorName', label: '受理人姓名', type: 'input', isEdit: false },
  { prop: 'acceptorOrgName', label: '所属机构', type: 'input', isEdit: false }
]
export const AUDIT_RESULT = {
  'PASS': '同意',
  'REJECT': '拒绝'
}

export const APPROVAL_FORM = [
  { prop: 'auditResult', label: '审批结果', inputWith: '200px', type: 'select', option: AUDIT_RESULT, rules: { required: true, message: '请选择类型', trigger: 'change' }, isEdit: true },
  { prop: 'auditAdvice', label: '审批意见', type: 'textarea', len: 200, rules: { required: true, message: '请输入配置项名称', trigger: 'blur' }, isEdit: true },
  { prop: '', label: '', type: 'btn', btnName: '保存' }
]
